<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddOtherSettingsToUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->string('article_wechat')->default('')->comment('文章微信');
            $table->string('card_time')->default('0:')->comment('名片推送时间集合');
            $table->string('article_time')->default('0:')->comment('文章分享时间集合');
            $table->string('random_action')->default('0:')->comment('随机行为(输入名称)');
            $table->string('applet')->default('0:')->comment('小程序(输入名称)');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn('article_wechat');
            $table->dropColumn('card_time');
            $table->dropColumn('article_time');
            $table->dropColumn('random_action');
            $table->dropColumn('applet');
        });
    }
}
